package com.daytask.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ControllorCommon {
	public static final String operate_success_msg = "操作成功";
	public static final int operate_success_status = 1;

	public static final String operate_fail_msg = "操作失败";
	public static final int operate_fail_status = 0;
	public static final String operate_haft_msg = "操作成功，有一部分失败";
	public static final int operate_haft_status = 2;

	public static final String msg_title_info = "操作提示";
	public static final String msg_title_error = "错误";

	public static List<Map<String, String>> levels = null;

	public static List<Map<String, String>> getLevels() {
		if (levels == null) {
			levels = new ArrayList<Map<String, String>>();
			Map<String, String> map = new HashMap<String, String>();
			map.put("id", "1");
			map.put("value", "年");
			levels.add(map);
			map = new HashMap<String, String>();
			map.put("id", "2");
			map.put("value", "月");
			levels.add(map);
			map = new HashMap<String, String>();
			map.put("id", "3");
			map.put("value", "周");
			levels.add(map);
			map = new HashMap<String, String>();
			map.put("id", "4");
			map.put("value", "日");
			levels.add(map);
			map = new HashMap<String, String>();
		}
		return levels;
	}

}
